package com.me.visitor;

/**
 * 访问者模式
 */
public class Client {

	public static void main(String[] args) {
		// 创建ObjectStructure
		ObjectStructure objectStructure = new ObjectStructure();
		objectStructure.attach(new Man());
		objectStructure.attach(new Woman());

		System.out.println("======= 给的是成功的测评 ========");
		Success success = new Success();
		objectStructure.display(success);

		System.out.println("======= 给的是失败的测评 ========");
		Fail fail = new Fail();
		objectStructure.display(fail);
		
		System.out.println("======= 给的是待定的测评 ========");
		Wait wait = new Wait();
		objectStructure.display(wait);
	}

}
